import requests
import app


class LoginAPI:
    def __init__(self):
        self.url_login = app.BASE_URL + "/api/sys/login"

    def login(self, login_data):
        return requests.post(url=self.url_login, json=login_data)


if __name__ == '__main__':
    print(LoginAPI().login({"mobile": "13800000002", "password": "123456"}).json())
